import request from '@/utils/request'

const api = {
  addDianjianPlanUrl: '/dianjian/add_dianjian_plan',
  queryDianjianPlanPageUrl: '/dianjian/query_dianjianplan_page',
}

export async function queryDianjianPlanPageApi(data: Map<string, any>) {
  const res = await request({
    url: api.queryDianjianPlanPageUrl,
    method: 'post',
    data,
  })
  return res
}

export async function addDianjianPlanApi(data: Map<string, any>) {
  const res = await request({
    url: api.addDianjianPlanUrl,
    method: 'post',
    data,
  })
  return res
}
